//
//  GYUser.h
//  GoodLuck
//
//  Created by apple on 2018/3/1.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GYUser : NSObject<NSCoding>

/** 用户key */
@property (nonatomic, strong) NSString *key;

/** 用户ID */
@property (nonatomic, strong) NSString *userid;

/** 用户账号 */
@property (nonatomic, strong) NSString *username;


//key = 3ae791cf6c1a164f26702ede705a5c60;
//userid = 1043;
//username = guo123456;


- (instancetype)initWithDic:(NSDictionary *)dic;

/**
 保存用户信息
 */
- (void)saveUserInfo;

/**
 加载用户登入信息

 @return <#return value description#>
 */
+ (GYUser *)loadUserInfo;

/**
 删除个人信息
 */
+ (BOOL)removeUserInfo;






@end
